package wang.javabean;

public class Text {
    public static void main(String[] args) {
        cook c = new cook("qwe", "wamh", 1000);
        System.out.println(c.getID()+","+c.getName()+","+c.getSalary());
        c.work();
        c.eat();


        Manager m=new Manager();
        m.setID("ww");
        m.setName("wabf");
        m.setBouns(5000);
        m.setSalary(10000);

        System.out.println(m.getBouns()+","+m.getSalary()+","+m.getID()+","+m.getName());
m.eat();
m.work();

    }

}
